package com.xjj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 投票选项表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("xjj_vote_option")
public class VoteOption {
    @TableId(type = IdType.AUTO)
    private Integer id;

//    选项内容
    @TableField("text")
    private String text;

//    该选项投票数
    @TableField("num")
    private Integer num;

//    投票id
    @TableField("vote_id")
    private Integer voteId;

}
